package com.zmm.study.blog.test.es.model;

import com.zmm.common.base.model.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * description:
 * name ArticleController
 *
 * @author Zebulon
 * date By 2022-01-19 22:18:15
 */
@RestController
@RequestMapping("/elasticsearch")
public class ArticleController {

    @Resource
    private ArticleService articleService;


    @PostMapping("/add")
    public Result add() {
        articleService.save();
        return Result.ok();
    }
}
